package com.itoken.feign.service;

import com.itoken.common.dto.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by 蔡超 on 2019/1/17.
 */
@FeignClient(value = "server")
public interface UserService {

    @RequestMapping(value = "login",method = RequestMethod.GET)
    BaseResult login(@RequestParam(value = "username") String username, @RequestParam(value = "password") String password);

    @RequestMapping(value = "hi",method = RequestMethod.GET)
    String sayHi(@RequestParam(value = "message")String message);
}
